package mgt.pages

class ApiGroupShowPage extends geb.Page {
    static url = "/apiGroup/show"

    static content = {
        propertyList(wait: true) { $(".property-list") }
        apiGroupNameValue { propertyList.find('aria-labelledby': 'name-label') }
        releaseButton(wait: true) { $("a.release") }
    }

    String getApiGroupName() {
        return apiGroupNameValue.text()
    }

    String release() {
        releaseButton.click()
    }
}